﻿using System;

namespace _28_彻底替换基数的成员_继承与多态
{
    class Program
    {
        static void Main(string[] args)
        {
            CheckTask t = new CheckTask();
            t.Run(20);

            DRCheckTask t2 = new DRCheckTask();
            t2.aa(10);
        }

    }

    class CheckTask
    {
        public void Run(int max)
        {
            Console.WriteLine("最大执行任务数：{0}", max);
        }
    }

    class DRCheckTask:CheckTask
    {
        public new void aa(int count) {

            Console.WriteLine("并行任务数：{0}", count);
        }
    }
}
